package com.java2104.mapper;

import com.java2104.entity.RCAttendance;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface RCAttendanceMapper {
    @Insert("insert into rc_class_attendance values(null,now(),#{rcClass.id}," +
            "#{attendancePersonNum},#{attendancePersonNum},#{attendanceRate},#{rcUser.id},#{remark})")
    int insert(RCAttendance attendance);
    //@Select("select * from rc_class_attendance ")
    List<RCAttendance> findList(int classId ,int userId);

}
